package cn.fairy.fegin;

import cn.fairy.domian.Store;
import cn.fairy.utils.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "store-server", fallbackFactory = ProductFallback.class)
public interface ProductClient {

    @PostMapping("/store/add")
    AjaxResult add(@RequestBody Store store);
}
